package com.xinlianshiye.im.utils.urlgoods;

import lombok.Getter;
import lombok.Setter;

import java.util.Map;

@Setter
@Getter
public class UrlGoods {
    private String url;
    private String id;
    private String name;
    private String images;
    private String enterpriseName;
    private String imageDomain;
    private String price;
    private String type;

    public void merge(Map<String, Object> map) {
        id = String.valueOf(map.get("id"));
        name = String.valueOf(map.get("name"));
        images = String.valueOf(map.get("images"));
        enterpriseName = String.valueOf(map.get("enterpriseName"));
        price = String.valueOf(map.get("price"));
        type = String.valueOf(map.get("type"));
    }
}
